//
//  NearFriendsCell.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/12/15.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "NearFriendsCell.h"
#import <UIImageView+WebCache.h>

@interface NearFriendsCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *nickNameLab;
@property (weak, nonatomic) IBOutlet UILabel *tellLab;
@property (weak, nonatomic) IBOutlet UILabel *signLab;
@property (weak, nonatomic) IBOutlet UILabel *distanceLab;

@end

@implementation NearFriendsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(FriendsDetailModel *)model
{
    _model = model;
    [self.iconView sd_setImageWithURL:[NSURL URLWithString:model.portraitUrl] placeholderImage:GetImage(@"person_avatar")];
    self.nickNameLab.text = model.nickName;
    self.tellLab.text = model.mobilePhone;
    self.signLab.text = model.personalizedSignature;
    self.distanceLab.text = [NSString stringWithFormat:@"距离:%@",model.distance];
}

@end
